package com.meijin.spring6.factory;

import org.springframework.beans.factory.FactoryBean;

/**
 * @Author meijindeng
 * @Data 2023-09-03 17:24
 * @Description MyFactoryBean 测试 FactoryBean 机制，重写 FactoryBean 的两个方法
 * @Version 1.0
 */
public class MyFactoryBean implements FactoryBean<Person> {
    @Override
    public Person getObject() throws Exception {
        return new Person();
    }

    @Override
    public Class<?> getObjectType() {
        return Person.class;
    }
}
